import request from '../http.js'

const api = {
	'vouPage': '/erp/voucherDesign/voucherDynamicPage', // 获取列表
	'voucherDesign': '/erp/voucherDesign/list',	// 获取表设计列表
	'DynamicById': '/erp/voucherDesign/voucherDynamicById', //获取详情信息 
	
	'tionsubmit': '/po/requisitionOrder/submit', // 提交/撤回 (请购)
	'tionexamine': '/po/requisitionOrder/examine',	// 审核/弃审 (请购)
	'tiondelete': '/po/requisitionOrder/delete',	// 请购单删除
	'tionsave': '/po/requisitionOrder/save',	// 添加
	
	'Ordersubmit': '/po/purchaseOrderMain/submit',	// 提交/撤回	(采购)
	'Orderexamine': '/po/purchaseOrderMain/examine',	// 审核/弃审	(采购)
	'Maindelete': '/po/purchaseOrderMain/delete',	// 采购订单删除
	'Mainsave': '/po/purchaseOrderMain/save',	// 添加
	
	'Arrivalsubmit': '/po/purchaseArrival/submit',	// 提交/撤回	(到货)
	'Arrivalamine': '/po/purchaseArrival/examine',	// 审核/弃审	(到货)
	'Arrivaldelete': '/po/purchaseArrival/delete',	// 到货通知单删除
	
	'Mainsubmit': '/inOut/recordMain/submit',	// 采购入库单 提交/撤回
	'Mainexamine': '/inOut/recordMain/examine',	// 采购入库单 审核/弃审
	'recordMaindelete': '/inOut/recordMain/delete',	// 采购入库删除
	'recordsave': '/inOut/recordMain/save',	// 采购入库单添加(退库)
	
	'Invoicesubmit': '/purchase/purchaseInvoice/submit',	// 采购发票 提交/撤回
	'Invoiceexamine': '/purchase/purchaseInvoice/examine',	// 采购发票 审核/弃审
	'Invoicedelete': '/purchase/purchaseInvoice/delete',	// 发票删除
	
	
	'invoicesubmit': '/so/invoice/submit',	//销售发票提交
	'invoiceexamine': '/so/invoice/examine',	// 销售审核
	'Invoicesave': '/purchase/purchaseInvoice/save',	// 销售添加
	
	
	'recordMainsubmit': '/inOut/recordMain/submit',	//销售出库提交
	'recordMainexamine': '/inOut/recordMain/examine',	// 销售出库审核
	
	'deliveryMainsubmit': '/so/deliveryMain/submit',	// 退货通知单提交
	'deliveryMainexamine': '/so/deliveryMain/examine',	// 退货通知单审核
	'deliveryMaindelete': '/so/deliveryMain/delete',	// 退货通知单删除
	
	'Quotationsubmit': '/so/saleQuotationMain/submit', // 报价单提交
	'Quotationexamine': '/so/saleQuotationMain/examine',	// 报价单审核
	'saleQuodelete': '/so/saleQuotationMain/delete',	// 报价单删除
	'Quotatioesave': '/so/saleQuotationMain/save',	// 报价单添加
	
	
	'saleOrdersubmit': '/so/saleOrder/submit',	// 销售订单提交
	'saleOrderexamine': '/so/saleOrder/examine',	// 销售订单审核
	'saleOrderdelete': '/so/saleOrder/delete',	// 销售订单删除
	'Ordersave': '/so/saleOrder/save',	// 销售订单添加
	
	'Arrivalsave': '/po/purchaseArrival/save',	// 拒收通知单添加
	
	
	'deliverysave': '/so/deliveryMain/save',	//发货通知单添加
	
	
	'invoicesa': '/so/invoice/save',	// 销售发票添加
	
	
}

//销售发票添加
export function invoicesa(data){ 
	return request({
		url: api.invoicesa,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//发货通知单添加
export function deliverysave(data){ 
	return request({
		url: api.deliverysave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//销售订单添加
export function Ordersave(data){ 
	return request({
		url: api.Ordersave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//报价单添加
export function Quotatioesave(data){ 
	return request({
		url: api.Quotatioesave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//销售添加
export function Invoicesave(data){ 
	return request({
		url: api.Invoicesave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//采购入库单添加
export function recordsave(data){ 
	return request({
		url: api.recordsave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//采购单添加
export function Arrivalsave(data){ 
	return request({
		url: api.Arrivalsave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//采购单添加
export function Mainsave(data){ 
	return request({
		url: api.Mainsave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//请购单添加
export function tionsave(data){ 
	return request({
		url: api.tionsave,	
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//销售订单提交
export function saleOrderdelete(data){ 
	return request({
		url: api.saleOrderdelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}


//销售订单提交
export function saleOrdersubmit(data){ 
	return request({
		url: api.saleOrdersubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//销售订单审核
export function saleOrderexamine(data){ 
	return request({
		url: api.saleOrderexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//报价单删除
export function saleQuodelete(data){ 
	return request({
		url: api.saleQuodelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}

//报价单提交
export function Quotationsubmit(data){ 
	return request({
		url: api.Quotationsubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//报价单审核
export function Quotationexamine(data){ 
	return request({
		url: api.Quotationexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//退货通知单删除
export function deliveryMaindelete(data){ 
	return request({
		url: api.deliveryMaindelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}


//退货通知单审核
export function deliveryMainexamine(data){ 
	return request({
		url: api.deliveryMainexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//退货通知单提交
export function deliveryMainsubmit(data){ 
	return request({
		url: api.deliveryMainsubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//销售出库提交
export function recordMainsubmit(data){ 
	return request({
		url: api.recordMainsubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//销售出库审核
export function recordMainexamine(data){ 
	return request({
		url: api.recordMainexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}



//销售审核
export function invoiceexamine(data){ 
	return request({
		url: api.invoiceexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//销售发票提交
export function invoicesubmit(data){ 
	return request({
		url: api.invoicesubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//采购入库删除
export function Invoicedelete(data){ 
	return request({
		url: api.Invoicedelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}

//采购入库删除
export function recordMaindelete(data){ 
	return request({
		url: api.recordMaindelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}

//到货通知单删除
export function Arrivaldelete(data){ 
	return request({
		url: api.Arrivaldelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}

//采购订单删除
export function Maindelete(data){ 
	return request({
		url: api.Maindelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}

//请购单删除
export function tiondelete(data){ 
	return request({
		url: api.tiondelete + '?id=' + data,
		method: 'delete',
		contentType:'application/json',
		data:data
	})
}

//审核/弃审
export function Invoiceexamine(data){ 
	return request({
		url: api.Invoiceexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//提交/撤回
export function Invoicesubmit(data){ 
	return request({
		url: api.Invoicesubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//提交/撤回
export function Mainsubmit(data){ 
	return request({
		url: api.Mainsubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//审核/弃审
export function Mainexamine(data){ 
	return request({
		url: api.Mainexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//审核/弃审
export function Arrivalamine(data){ 
	return request({
		url: api.Arrivalamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//提交/撤回
export function Arrivalsubmit(data){ 
	return request({
		url: api.Arrivalsubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//审核/弃审
export function Orderexamine(data){ 
	return request({
		url: api.Orderexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//提交/撤回
export function Ordersubmit(data){ 
	return request({
		url: api.Ordersubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//审核/弃审
export function tionexamine(data){ 
	return request({
		url: api.tionexamine,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//提交/撤回
export function tionsubmit(data){ 
	return request({
		url: api.tionsubmit,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取详情信息
export function DynamicById(data){ 
	return request({
		url: api.DynamicById,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取表设计列表
export function voucherDesign(data){ 
	return request({
		url: api.voucherDesign,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}

//获取列表
export function vouPage(data){ 
	return request({
		url: api.vouPage,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}











